package cn.iocoder.yudao.module.trade.service.order.handler;

import org.springframework.boot.autoconfigure.security.SecurityProperties;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
public class Asch1018Service {

    @Resource
    private Asch1018ServiceHandler asch1018ServiceHandler;

    @PostMapping("call")
    public String call(String content){
        Asch1018Request asch1018Request=null;
        try{
            asch1018Request = asch1018ServiceHandler.before(content, Asch1018Request.class);
            asch1018ServiceHandler.check(asch1018Request);
        } catch (Exception e) {
            return "error";
        }
        SecurityProperties.User check1 = asch1018ServiceHandler.check("0");

        return "ok";
    }
}
